package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.qf
 * @Description:
 * @Date 2022/7/6 11:33
 */
@SpringBootApplication
@EnableEurekaClient
//开启hystrix熔断器
@EnableCircuitBreaker
//开启熔断器仪表板
@EnableHystrixDashboard
//扫描hystrix
@ServletComponentScan("com.qf.servlet")
public class Searchapplication {
    public static void main(String[] args) {
        SpringApplication.run(Searchapplication.class,args);
    }
}
